<template>
  <div>
    <div class="search">
      <input v-model="keyword" type="text" class="search-input" placeholder="输入城市名或拼音">
    </div>
    <div class="search-content" v-if="keyword">
      <ul>
        <li>123</li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  name: 'CitySearch',
  data () {
    return {
      keyword: ''
    }
  }
}
</script>

<style lang='stylus' scoped>
  @import '~styles/varibles.styl';
  .search
    height .72rem
    padding 0.1rem
    background $bgColor
    &-input
      height .62rem
      line-height .62rem
      width 100%
      padding 0 .1rem
      text-align center
      border-radius .06rem
      color #666
      box-sizing border-box
  .search-content
    z-index 1
    overflow hidden
    position absolute
    top 1.58rem
    left 0
    right 0
    bottom 0
    background green
</style>
